﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using 股票数据;

namespace StockDataBase
{
    class LogUtils
    {
        public static void Print(String s)
        {
            var list =  MainWindow.Instance.listview;
            App.Current.Dispatcher.BeginInvoke(new Action(() => {
                list.Items.Add(new TextBlock() { 
                    Text = s,
                });
                list.ScrollIntoView(list.Items[list.Items.Count - 1]);
            }));
        }
    }
}
